package com.jumper.property.comparer.core.support.param;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * 业务日志查询参数
 */
@Getter
@Setter
public class LogPageParam implements Serializable {
    /**
     * 页码
     */
    private int pageNum;
    /**
     * 页面大小
     */
    private int pageSize = 10;
    /**
     * 数据标识
     */
    private String dataKey;

    public int getPageNum() {
        return pageNum <= 0 ? 1 : pageNum;
    }
}
